Fix configuring lib targets with profile options
authorAlex Crichton <alex@alexcrichton.com>
Sat, 21 Mar 2015 01:52:32 +0000 (18:52 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Sat, 21 Mar 2015 01:52:32 +0000 (18:52 -0700)
src/cargo/util/toml.rs

index adc7bd90d65254e2ca1d0b0e306b37df62d8f141..ded986ee9f15b469c37a27c99c06e44232109d62 100644 (file)
@@ -670,9 +670,11 @@ fn normalize(libs: &[TomlLibTarget],
             vec![if l.plugin == Some(true) {LibKind::Dylib} else {LibKind::Lib}]
         });
 
-        dst.push(Target::lib_target(&l.name, crate_types.clone(),
-                                    &path.to_path(),
-                                    metadata.clone()));
+        let mut target = Target::lib_target(&l.name, crate_types.clone(),
+                                            &path.to_path(),
+                                            metadata.clone());
+        configure(l, &mut target);
+        dst.push(target);
     }
 
     fn bin_targets(dst: &mut Vec<Target>, bins: &[TomlBinTarget],